import Layout from '@/layout'
// 定义模块,导出这个对象
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '', // 作为默认渲染路由
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      // vue路由约定的属性,是可选的
      meta: { title: '员工管理', icon: 'people' }
    },
    // 加斜杆 可以直接输入路径进去
    {
      path: 'detail',
      component: () => import('@/views/employees/detail'),
      name: 'employeesDetail',
      hidden: true
    }
  ]
}
